﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Security.Principal;
using ICE.Vacations.DataBase;
using ICE.Vacations.Request;

namespace ICE.Vacations.Web.Controllers
{
    public class HomeController : Controller
    {
        public SQLDataClass sql = new SQLDataClass();

        public ActionResult Index(FormCollection form)
        {
            var username = form["username"];
            ViewBag.UserName = username;
                    
            return View();
        }

        public ActionResult About(FormCollection form)
        {
            ViewBag.Message = "Página de descripción de la aplicación.";
            var apellido = form["txtApellido1"];
            //var nombre = form["txtNombre"];
            ViewBag.Apellido = apellido;
            //ViewBag.Nombre = nombre;
           
            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Página de contacto.";

            return View();
        }

        public ActionResult Request()
        {

            return View();
        }

        public ActionResult Resolution()
        {
            return View();

        }

        public ActionResult Consult()
        {
            return View();
        }

        public ActionResult SaveRequest()
        {
            Documents doc = new Documents();
            doc.apellido1 = "";//
            doc.apellido2 = "";//
            doc.aprobador1 = "";
            doc.aprobador2 = "";
            doc.aprobador3 = "";
            doc.bossID = "";
            doc.cod_cf = "";
            doc.cod_direccion = "";
            doc.date = "";//
            doc.dateFrom = "";//
            doc.dateTo = "";//
            doc.eMail = "";//
            doc.employeeID = "";//
            doc.employeeName = "";//
            doc.managerID = "";//
            doc.requestID = "";//
            doc.revision = "";
            doc.state = "";
            doc.totalDays = 0; //
            doc.year = "";//
            doc.tipo = "";//
            doc.username = "";//
            return View();

        }
    }
}
